<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\common\model;

/**
 * 友情链接模型
 */
class Classroom extends ModelBase
{
	//时间写入数据库
	public function setWork_timeAttr($time)
	{
		return strtotime($time);
	}
	
	//时间读取器
	public function getWork_timeAttr($time)
	{
		return date('M-d HH:MM',$time);
	}
    
}